home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / Dev / Oberon / source / amiga / MathResource.mod < prev    next >
Text File  |  1995-06-29  |  2KB  |  78 lines

  1. (**************************************************************************
  2.  
  3.      $RCSfile: MathResource.mod $
  4.   Description: Interface to MathIEEE.resource
  5.  
  6.    Created by: fjc (Frank Copeland)
  7.     $Revision: 3.8 $
  8.       $Author: fjc $
  9.         $Date: 1995/06/04 23:13:14 $
  10.  
  11.   $VER: mathresource.h 1.2 (13.7.90)
  12.   Includes Release 40.15
  13.  
  14.   (C) Copyright 1985-1993 Commodore-Amiga, Inc.
  15.       All Rights Reserved
  16.  
  17.   Oberon-A interface Copyright © 1994-1995, Frank Copeland.
  18.   This file is part of the Oberon-A Interface.
  19.   See Oberon-A.doc for conditions of use and distribution.
  20.  
  21. ***************************************************************************)
  22.  
  23. <* STANDARD- *>
  24.  
  25. MODULE [2] MathResource;
  26.  
  27. IMPORT e := Exec, s := Sets;
  28.  
  29.  
  30. (*
  31. **
  32. **      Data structure returned by OpenResource of:
  33. **      "MathIEEE.resource"
  34. **
  35. *)
  36.  
  37.  
  38. (*
  39. *       The 'Init' entries are only used if the corresponding
  40. *       bit is set in the Flags field.
  41. *
  42. *       So if you are just a 68881, you do not need the Init stuff
  43. *       just make sure you have cleared the Flags field.
  44. *
  45. *       This should allow us to add Extended Precision later.
  46. *
  47. *       For Init users, if you need to be called whenever a task
  48. *       opens this library for use, you need to change the appropriate
  49. *       entries in MathIEEELibrary.
  50. *)
  51.  
  52. TYPE
  53.  
  54.   MathIEEEResourcePtr * = POINTER TO MathIEEEResource;
  55.   MathIEEEResource * = RECORD (e.NodeBase)
  56.     node *         : e.Node;
  57.     flags *        : s.SET16;
  58.     baseAddr *     : e.APTR; (* ptr to 881 if exists *)
  59.     dblBasInit *   : e.PROC;
  60.     dblTransInit * : e.PROC;
  61.     sglBasInit *   : e.PROC;
  62.     sglTransInit * : e.PROC;
  63.     extBasInit *   : e.PROC;
  64.     extTransInit * : e.PROC;
  65.   END; (* MathIEEEResource *)
  66.  
  67. CONST
  68.  
  69. (* definations for MathIEEEResourceFLAGS *)
  70.   dblBas        * = 0;
  71.   dblTrans      * = 1;
  72.   sglBas        * = 2;
  73.   sglTrans      * = 3;
  74.   extBas        * = 4;
  75.   extTrans      * = 5;
  76.  
  77. END MathResource.
  78.